import React from 'react'
import PropTypes from 'prop-types'
import './index.sass'
export default function FilterFooter({cancelText = '取消',okText = '确定',onCancel,onOk,className,style}) {
  // props校验
  FilterFooter.propTypes = {
    cancelText: PropTypes.string,
    okText: PropTypes.string,
    onCancel: PropTypes.func,
    onOk: PropTypes.func,
    className: PropTypes.string,
    style: PropTypes.object
  }
  return (
    <div className={` ${className || 'filter-footer'}`} style={style}>
      <div className="btn cancel" onClick={onCancel}>{cancelText}</div>
      <div className="btn ok" onClick={onOk}>{okText}</div>
    </div>
  )
}
